package com.cqie.campusserver.controller;

import com.cqie.campusfeignapi.api.StudentClient;
import com.cqie.campusfeignapi.api.TeacherClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author Zhangr132
 * @date 2024/5/29 16:30
 */
@RestController
@Api(tags = "管理端管理模块")
public class testController {


    @Resource
    private StudentClient studentClient;

    @Resource
    private TeacherClient teacherClient;

    @GetMapping("/studentTest")
    @ApiOperation("测试接口")
    public String test() {
        return studentClient.test();
    }

    @GetMapping("/teacherTest")
    @ApiOperation("测试接口")
    public String TeacherTest() {
        return teacherClient.test();
    }


}
